package com.ruoyi.project.charging.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 岸电MQTT消息转换后的消息数据对象 t_charging_mqtt_msg_convert
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
public class TChargingMqttMsgConvert extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 转换后消息主键 */
    private String msgConvertId;

    /** 项目代码 */
    @Excel(name = "项目代码")
    private String projectCod;

    /** 总控器代码 */
    @Excel(name = "总控器代码")
    private String collectorCod;

    /** 设备代码 */
    @Excel(name = "设备代码")
    private String deviceCod;

    /** 对象代码（对象包括plc传输的控制字具体字位和g6a传输的设备具体测点） */
    @Excel(name = "对象代码", readConverterExp = "对=象包括plc传输的控制字具体字位和g6a传输的设备具体测点")
    private String itemCod;

    /** 对象数值 */
    @Excel(name = "对象数值")
    private String itemVal;

    /** 转换后数据的插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "转换后数据的插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insTim;

    /** 原始数据ID */
    @Excel(name = "原始数据ID")
    private String msgOriginId;

    /** 原始数据的插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "原始数据的插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date monitorTim;

    public void setMsgConvertId(String msgConvertId) 
    {
        this.msgConvertId = msgConvertId;
    }

    public String getMsgConvertId() 
    {
        return msgConvertId;
    }
    public void setProjectCod(String projectCod) 
    {
        this.projectCod = projectCod;
    }

    public String getProjectCod() 
    {
        return projectCod;
    }
    public void setCollectorCod(String collectorCod) 
    {
        this.collectorCod = collectorCod;
    }

    public String getCollectorCod() 
    {
        return collectorCod;
    }
    public void setDeviceCod(String deviceCod) 
    {
        this.deviceCod = deviceCod;
    }

    public String getDeviceCod() 
    {
        return deviceCod;
    }
    public void setItemCod(String itemCod) 
    {
        this.itemCod = itemCod;
    }

    public String getItemCod() 
    {
        return itemCod;
    }
    public void setItemVal(String itemVal) 
    {
        this.itemVal = itemVal;
    }

    public String getItemVal() 
    {
        return itemVal;
    }
    public void setInsTim(Date insTim) 
    {
        this.insTim = insTim;
    }

    public Date getInsTim() 
    {
        return insTim;
    }
    public void setMsgOriginId(String msgOriginId) 
    {
        this.msgOriginId = msgOriginId;
    }

    public String getMsgOriginId() 
    {
        return msgOriginId;
    }
    public void setMonitorTim(Date monitorTim) 
    {
        this.monitorTim = monitorTim;
    }

    public Date getMonitorTim() 
    {
        return monitorTim;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("msgConvertId", getMsgConvertId())
            .append("projectCod", getProjectCod())
            .append("collectorCod", getCollectorCod())
            .append("deviceCod", getDeviceCod())
            .append("itemCod", getItemCod())
            .append("itemVal", getItemVal())
            .append("insTim", getInsTim())
            .append("msgOriginId", getMsgOriginId())
            .append("monitorTim", getMonitorTim())
            .toString();
    }
}
